INCDIR = -I.
DBG    = -g
OPT    = -O3
CPP    = g++
CFLAGS = $(DBG) $(OPT) $(INCDIR)
LINK   = -lm 

.cpp.o:
	$(CPP) $(CFLAGS) -c $< -o $@

default: segment

segment:
	$(CPP) $(CFLAGS) -o seg imageSegment.cpp $(LINK)

clean:
	/bin/rm -f seg *.o
